Function: useProfile()
useProfile(
params
):QueryResult
<"profile"
,Profile
>
Get single profile
If no profileId
is provided, the default profile is used.
Parameters
• params = {}
• params.profileId?: string
The id of the profile.
• params.query?: QueryOptions
<Profile
>
See Tanstack Query - useQuery options.
Returns
QueryResult
<"profile"
, Profile
>
Example
const {
profile, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useProfile();